<template>
  <div class="order-refund">
    <nav-bar title="退款进度"
             bgColor="#eeeeee">
    </nav-bar>
    <div class="refund-top">
      <div class="top-step">
        <p>商家处理中</p>
        <van-steps :active="active"
                   active-color="#e85014"
                   active-icon="circle"
                   inactive-icon="circle"
                   finish-icon="circle">
          <van-step>卖家审核</van-step>
          <van-step>卖家收货</van-step>
          <van-step>卖家退款</van-step>
          <van-step>退款成功</van-step>
        </van-steps>
      </div>
    </div>
    <div class="detail-content">
      <div class="content-good">
        <li class="good-title">
          <van-icon name="shop-o" />
          <span>美的旗舰店</span>
        </li>
        <order-good-card></order-good-card>
      </div>
      <div class="content-order">
        <span class="order-title">售后信息</span>
        <li class="order-info">
          售后类型：<em>退款</em>
        </li>
        <li class="order-info">
          申请时间：<em>2020-09-03 11:11:11</em>
        </li>
        <li class="order-info">
          退款原因：<em>2020-09-03 11:11:11</em>
        </li>
      </div>
    </div>
    <div class="detail-footer">
      <span class="btn-orange">取消退款</span>
    </div>
  </div>
</template>

<script>
import NavBar from '@/components/NavBarSecond'
import OrderGoodCard from '@/components/OrderGoodCard'
export default {
  data () {
    return {
      active: 1
    };
  },
  components: {
    NavBar,
    OrderGoodCard
  },
  created () { },
  methods: {}
}

</script>

<style lang='scss'>
.order-refund {
  @include top-page;
  background-color: #eeeeee;
  align-items: center;
  .refund-top {
    width: 100%;
    height: 2.45rem;
    position: relative;
    background: linear-gradient(-90deg, #f28e26 0%, #fd644f 100%);
    box-sizing: border-box;
    padding: 0.22rem 0.1rem;
    .top-step {
      @include wh100;
      background-color: #fff;
      border-radius: 0.15rem;
      overflow: hidden;
      > p {
        margin: 0.2rem 0 0 0.5rem;
        font-size: 0.3rem;
        font-weight: 600;
        color: #010101;
      }
      .van-steps {
        margin: 0.15rem 0.6rem;
        height: 60%;
      }
    }
    ::v-deep .van-icon {
      border-radius: 1rem;
    }
    ::v-deep .van-step--horizontal .van-icon {
      background-color: #999999;
    }
    ::v-deep .van-step--finish .van-icon {
      color: #e85014;
      background-color: transparent;
    }
    ::v-deep .van-step--process .van-icon {
      background-color: #e85014;
    }
  }
  .detail-content {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 0.1rem;
    @include flex-column;
    .content-good {
      width: 100%;
      background-color: #ffffff;
      @include flex-column;
      box-sizing: border-box;
      padding: 0.2rem 0.2rem 0.2rem 0.4rem;
      border-radius: 0.15rem;
      margin: 0.1rem 0;
      .good-title {
        display: flex;
        align-items: center;
        font-size: 0.28rem;
        font-weight: 600;
        color: #131415;
        margin-bottom: 0.2rem;
        .van-icon {
          font-size: 0.32rem;
          font-weight: 600;
          margin-right: 0.1rem;
        }
      }
      .order-good-card {
        margin: 0.05rem 0;
      }
    }
    .content-order {
      width: 100%;
      background-color: #ffffff;
      @include flex-column;
      box-sizing: border-box;
      padding: 0.2rem 0.2rem 0.25rem 0.4rem;
      border-radius: 0.15rem;
      .order-title {
        margin-bottom: 0.1rem;
        font-size: 0.28rem;
        font-weight: 600;
        color: #000000;
      }
      .order-info {
        font-size: 0.26rem;
        color: #000000;
        margin: 0.1rem 0;
      }
    }
  }
  .detail-footer {
    align-self: flex-end;
    width: 100%;
    height: 1rem;
    box-shadow: 1px 1px 3px rgba(1, 1, 1, 0.1);
    border-top: 1px solid rgba(1, 1, 1, 0.1);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    span {
      width: 1.6rem;
      height: 0.5rem;
      line-height: 0.5rem;
      text-align: center;
      border-radius: 1rem;
      border: 1px solid #999999;
      font-size: 0.24rem;
      color: #999999;
      margin-right: 0.25rem;
    }
    .btn-orange {
      border-color: #e85014;
      font-weight: 500;
      color: #e85014;
    }
  }
}
</style>